package com.block.channelext.enums;

import cn.hutool.core.util.StrUtil;
import lombok.Getter;

@Getter
public enum ActionTypeEnum {

    REGISTER(1,"REGISTER", "注册"),
    AUTH(2,"AUTH", "认证"),
    PRO_UV(3,"PRO_UV", "产品点击"),
    ;

    Integer type;
    String value;
    String name;

    ActionTypeEnum(Integer type,String value, String name){
        this.type = type;
        this.value = value;
        this.name = name;
    }

    public static boolean contains(String value){
        for (ActionTypeEnum item : values()) {
            if (StrUtil.equals(item.getValue(), value)){
                return true;
            }
        }
        return false;
    }
}
